package com.debt.canal.listener;

import com.alibaba.otter.canal.protocol.CanalEntry;
import com.xpand.starter.canal.annotation.CanalEventListener;
import com.xpand.starter.canal.annotation.ListenPoint;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author Gaozexi on 2020/6/7 13:25
 * Step by Step  and Stand on,  You Are The Best Investment!
 */

/**
 * 声明为canal的监听类
 */
@CanalEventListener
public class BaseListener {

    @Autowired
    private RabbitTemplate rabbitTemplate;
    /**
     * @param eventType 当前操作的数据库的类型
     * @param rowData 当前操作数据库的数据
     */
    @ListenPoint(schema = "",table="")
    public void adUpdate(CanalEntry.EventType eventType,CanalEntry.RowData rowData){


    }
}
